package com.corticon.client.model;

import java.io.Serializable;
import java.util.List;
import java.util.ArrayList;

/**
 * 
 */
public class SummaryPageDTO implements Serializable, Comparable {
	private String title;
	private Integer sequence;
	private String theme;
	private List<SummaryQuestionDTO> questions = new ArrayList<SummaryQuestionDTO>();

	public SummaryPageDTO() {
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	public List<SummaryQuestionDTO> getQuestions() {
		return questions;
	}

	public void setQuestions(List<SummaryQuestionDTO> questions) {
		this.questions = questions;
	}

	@Override
	public int compareTo(Object o) {
		SummaryPageDTO other = (SummaryPageDTO) o;
		return sequence.compareTo(other.getSequence());
	}

	public String getTheme() {
		return theme;
	}

	public void setTheme(String theme) {
		this.theme = theme;
	}
}